const express = require('express');
const router = express.Router();
const question_router=require('../router_handle/questions.js')
//获取问题列表接口
router.get('/getQuestions', question_router.getQuestions);
//获得热门问题接口
router.get('/getHotQuestions', question_router.getHotQuestions);
//获取问题详情接口
router.get('/getQuestionDetail', question_router.getQuestionDetail);
//发送回答接口
router.post('/submitAnswer', question_router.submitAnswer);
//点赞
router.post('/likeAnswer', question_router.likeAnswer);
//踩
router.post('/dislikeAnswer', question_router.dislikeAnswer);
//获得用户对问题点赞和踩的状态
router.post('/getUserAnswerOpStatus', question_router.getUserAnswerOpStatus);
//收藏问题
router.post('/collectQuestion', question_router.collectQuestion);
//获得用户对问题的收藏状态
router.post('/getUserQuestionCollectStatus', question_router.getUserQuestionCollectStatus);
//创建问题接口
router.post('/createQuestion', question_router.createQuestion);
module.exports = router;